<html>
<head>
    <meta charset="UTF-8">
    <title>Test Console Log</title>
</head>
<body>
<button id="Btn">测试按钮</button>

<script>
    document.addEventListener('DOMContentLoaded', function() {
        document.getElementById('Btn').addEventListener('click', function() {
            console.log('按钮被点击了');
        });
    });
</script>
</body>
</html>